{% if builder != 'htmlhelp' %}{% set titlesuffix = " &mdash; Python Documentation" %}{% endif -%}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>{{ title|striptags }}{{ titlesuffix }}</title>
    {%- if builder == 'web' %}
    <link rel="stylesheet" href="{{ pathto('index.rst') }}?do=stylesheet{%
      if in_admin_panel %}&admin=yes{% endif %}" type="text/css">
    {%- for link, type, title in page_links %}
    <link rel="alternate" type="{{ type|e(true) }}" title="{{ title|e(true) }}" href="{{ link|e(true) }}">
    {%- endfor %}
    {%- else %}
    <link rel="stylesheet" href="{{ pathto('style/default.css', 1) }}" type="text/css">
    <link rel="stylesheet" href="{{ pathto('style/pygments.css', 1) }}" type="text/css">
    {%- endif %}
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:   '{{ pathto("", 1) }}',
        VERSION:    '{{ release }}'
      };
    </script>
    <script type="text/javascript" src="{{ pathto('style/jquery.js', 1) }}"></script>
    <script type="text/javascript" src="{{ pathto('style/interface.js', 1) }}"></script>
    <script type="text/javascript" src="{{ pathto('style/doctools.js', 1) }}"></script>
    <link rel="author" title="About these documents" href="{{ pathto('about.rst') }}">
    <link rel="contents" title="Global table of contents" href="{{ pathto('contents.rst') }}">
    <link rel="index" title="Global index" href="{{ pathto('genindex.rst') }}">
    <link rel="search" title="Search" href="{{ pathto('search.rst') }}">
    <link rel="copyright" title="Copyright" href="{{ pathto('copyright.rst') }}">
    <link rel="top" title="Python Documentation" href="{{ pathto('index.rst') }}">
    {%- if parents %}
    <link rel="up" title="{{ parents[-1].title|striptags }}" href="{{ parents[-1].link|e }}">
    {%- endif %}
    {%- if next %}
    <link rel="next" title="{{ next.title|striptags }}" href="{{ next.link|e }}">
    {%- endif %}
    {%- if prev %}
    <link rel="prev" title="{{ prev.title|striptags }}" href="{{ prev.link|e }}">
    {%- endif %}
    {% block head %}{% endblock %}
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px"><a href="{{ pathto('genindex.rst') }}" title="General Index">index</a></li>
        <li class="right"><a href="{{ pathto('modindex.rst') }}" title="Global Module Index">modules</a> |</li>
        {%- if next %}
          <li class="right"><a href="{{ next.link|e }}" title="{{ next.title|striptags }}">next</a> |</li>
        {%- endif %}
        {%- if prev %}
          <li class="right"><a href="{{ prev.link|e }}" title="{{ prev.title|striptags }}">previous</a> |</li>
        {%- endif %}
        {%- if builder == 'web' %}
          <li class="right"><a href="{{ pathto('settings.rst') }}"
                               title="Customize your viewing settings">settings</a> |</li>
        {%- endif %}
        <li><a href="{{ pathto('index.rst') }}">Python v{{ release }} Documentation</a> &raquo;</li>
        {%- for parent in parents %}
          <li><a href="{{ parent.link|e }}">{{ parent.title }}</a> &raquo;</li>
        {%- endfor %}
      </ul>
    </div>
    <div class="document">
      <div class="documentwrapper">
        {%- if builder != 'htmlhelp' %}
        <div class="bodywrapper">
        {%- endif %}
          <div class="body">
            {% block body %}{% endblock %}
          </div>
        {%- if builder != 'htmlhelp' %}
        </div>
        {%- endif %}
      </div>
      {%- if builder != 'htmlhelp' %}
      {%- include "sidebar.html" %}
      {%- endif %}
      <div class="clearer"></div>
    </div>
    <div class="footer">
      &copy; <a href="{{ pathto('copyright.rst') }}">Copyright</a>
      1990-2007, Python Software Foundation.
      {% if last_updated %}Last updated on {{ last_updated }}.{% endif %}
    </div>
  </body>
</html>
